home *** CD-ROM | disk | FTP | other *** search
- global dossier, theme, soustheme1, soustheme2, n
-
- on copie_mac
- fichiers_jpg_seul()
- end
-
- on fichiers_jpg_seul
- set the text of field "converti" to n
- X = the number of chars in (member "converti").word[1]
- put " " before char X - 3 of word 1 of field "converti"
- delete word 2 of field "converti"
- conver = word 1 of field "converti"
- os = new(xtra("fileio"))
- dosRegister(41860189)
- disque_system = getOSDirectory()
- member("trans1", 1).text = EMPTY
- member("trans2", 1).text = EMPTY
- i = 1
- put disque_system into field "trans1"
- charac = char i of field "trans1"
- repeat while charac <> ":"
- put charac into char i of field "trans2"
- i = i + 1
- charac = char i of field "trans1"
- end repeat
- disque_system = the text of field "trans2"
- adress_defaut = disque_system & ":"
- if soustheme2 = EMPTY then
- n = conver & ".JPG"
- m = dosSelectFile("save", adress_defaut, n, ["*.*"], "O├╣ voulez-vous enregistrer?")
- dosCopyFile(the moviePath & dossier & ":" & theme & ":" & soustheme1 & ":" & n, m)
- else
- if soustheme1 = EMPTY then
- u = dosIsFileExist(the moviePath & dossier & ":" & theme & ":" & soustheme2 & ":" & n)
- n = conver & ".JPG"
- m = dosSelectFile("save", adress_defaut, n, ["*.*"], "O├╣ voulez-vous enregistrer?")
- dosCopyFile(the moviePath & dossier & ":" & theme & ":" & soustheme2 & ":" & n, m)
- else
- n = conver & ".JPG"
- m = dosSelectFile("save", adress_defaut, n, ["*.*"], "O├╣ voulez-vous enregistrer?")
- put m
- dosCopyFile(the moviePath & dossier & ":" & theme & ":" & soustheme1 & ":" & soustheme2 & ":" & n, m)
- end if
- end if
- end
-
- on fichiers_wmf_jpg
- set the text of field "converti" to n
- X = the number of chars in (member "converti").word[1]
- put " " before char X - 3 of word 1 of field "converti"
- delete word 2 of field "converti"
- conver = word 1 of field "converti"
- os = new(xtra("fileio"))
- dosRegister(41860189)
- disque_system = getOSDirectory()
- member("trans1", 1).text = EMPTY
- member("trans2", 1).text = EMPTY
- i = 1
- put disque_system into field "trans1"
- charac = char i of field "trans1"
- repeat while charac <> ":"
- put charac into char i of field "trans2"
- i = i + 1
- charac = char i of field "trans1"
- end repeat
- disque_system = the text of field "trans2"
- adress_defaut = disque_system & ":"
- put "adress_defaut : " & adress_defaut
- if soustheme2 = EMPTY then
- u = dosIsFileExist(the moviePath & "wmf" & ":" & theme & ":" & soustheme1 & ":" & n)
- if u <> 1 then
- n = conver & ".WMF"
- else
- n = conver & ".JPG"
- end if
- m = dosSelectFile("save", adress_defaut, n, ["*.*"], "O├╣ voulez-vous enregistrer?")
- dosCopyFile(the moviePath & "wmf" & ":" & theme & ":" & soustheme1 & ":" & n, m)
- else
- if soustheme1 = EMPTY then
- u = dosIsFileExist(the moviePath & "wmf" & ":" & theme & ":" & soustheme2 & ":" & n)
- if u <> 1 then
- n = conver & ".WMF"
- else
- = = conver & ".JPG"
- end if
- m = dosSelectFile("save", adress_defaut, n, ["*.*"], "O├╣ voulez-vous enregistrer?")
- dosCopyFile(the moviePath & "wmf" & ":" & theme & ":" & soustheme2 & ":" & n, m)
- else
- u = dosIsFileExist(the moviePath & "wmf" & ":" & theme & ":" & soustheme1 & ":" & soustheme2 & ":" & n)
- if u <> 1 then
- n = conver & ".WMF"
- else
- n = conver & ".JPG"
- end if
- m = dosSelectFile("save", adress_defaut, n, ["*.*"], "O├╣ voulez-vous enregistrer?")
- dosCopyFile(the moviePath & "wmf" & ":" & theme & ":" & soustheme1 & ":" & soustheme2 & ":" & n, m)
- end if
- end if
- end
-